package redisinit

import (
	"api/appconfig"
	"github.com/go-redis/redis/v8"
)

var (
	RedisClient *redis.Client
)

func RedisInit() {
	redisConf := appconfig.AppConf.RedisConfig
	RedisClient = redis.NewClient(&redis.Options{
		Addr:     redisConf.Addr,
		Password: redisConf.Password, // no password set
		DB:       redisConf.Db,       // use default DB
	})
	
}
